<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .con {
            display: flex;
            /* 布局的方向 */
            /* 默认row 水平方向 */
            /* flex-direction: row; */
            /* 竖向排列 ，沿着垂直方向 */
            /* flex-direction: column; */
            /* 起始点在最底部 */
            /* flex-direction: column-reverse; */
            /* height: 2000px; */
            /* 起始点在最右边 */
            flex-direction: row-reverse;
        }

        .item {
            width: 200px;
            height: 300px;
            border: 1px solid rebeccapurple;
        }
    </style>
</head>

<body>
    <div class="con">
        <div class="item">
            1
        </div>
        <div class="item">
            2
        </div>
        <div class="item">
            3
        </div>
        <div class="item">
            4
        </div>
        <div class="item">
            5
        </div>
    </div>
</body>

</html>